From: Fabián Ezequiel Gallina Date: Thu, 17 May 2012 03:02:56 +0000 (-0300) Subject: Do not indent at the beginning of buffer fix X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~2326^2~2278 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=19b122e44ec87cb5e19247049b1088f60f6a72ff;p=emacs.git Do not indent at the beginning of buffer fix --- diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 9a55f337996..3f363f960ed 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -453,7 +453,9 @@ START is the buffer position where the sexp starts." (cons (cond ;; Beginning of buffer - ((bobp) + ((save-excursion + (goto-char (line-beginning-position)) + (bobp)) 'no-indent) ;; Inside a paren ((setq start (nth 1 ppss))